@modalContentPaddingX: 16px;
@modalContentPaddingY: 14px;

/* modal-wrap-show */
.modal-wrap-show
{
  &.save-modal-wrap,
  &.image-modal-wrap,
  &.html5-modal-wrap {
    top: 0;
  }
}

/* modal-wrap */
.save-modal-wrap,
.image-modal-wrap,
 .html5-modal-wrap{
	box-shadow: none !important;
	top: -200vh;
	left: 0;
	z-index: 1;
	position: fixed;
	width: 100vw !important;
	height: 100vh;
	background-color: fade(#263238,70%);
	transition: top @animationTime;
	display: flex;
	align-items: center;
	justify-content: center;

	> .modal {
		padding: @modalContentPaddingY @modalContentPaddingX;
		width: 520px;
		border-radius: 5px;
		box-shadow: -1px -1px 1px @shadowColor,-1px 1px 1px @shadowColor,1px -1px 1px @shadowColor,1px 1px 1px @shadowColor;
		background-color: #fff;
	}
}

/* modal-content */
.modal {
	> .fa-close {
		position: absolute;
		right: @modalContentPaddingX;
		top: @modalContentPaddingY;
		color: #888;
		font-weight: lighter;
		transition: color @animationTime;

		&:hover {
			color: @dangerColor;
			cursor: pointer;
		}
	}
	
	> h1 {
		height: 20px;
		line-height: 20px;
		font-size: 14px;
		color: #1c2438;
		font-weight: lighter;
	}

	> hr {
		height: 1px;
		border: 0;
		background-color: #e9eaec;
	}

	> form,
	> .category-container,
	> .modal-bottom-tool {
		padding: 8px 2rem;
	}

	> .category-container {
		> span{
			display: inline-block;
			line-height: 18px;
			font-size: 14px;
			background-color:#7cc779;
			color: #fff;
    		border-radius: 3px;
			padding-left: 6px;
			padding-right: 6px;
			cursor: pointer;
			margin-bottom: 5px;
		}
	}
}

/* form */
.modal-form {
	> textarea {
		display: none;
	}

	> label {
		display: block;
		width: 100%;
		font-size: 12px;
    	color: #495060;

		> input {
			width: 100%;
			outline: none;
			display: block;
			margin-top: 4px;
			margin-bottom: 12px;
			height: 32px;
			line-height: 1.5;
			padding: 4px 7px;
			font-size: 12px;
			border: 1px solid #dddee1;
			border-radius: 4px;
			color: #495060;
			background-color: #fff;
			transition: border-color @animationTime;

			&:hover,
			&:focus {
				border-color: @successfulColor;
			}
		}
	}
}

/* bottom-tool-bar */
.modal-bottom-tool {
	width: 100%;
	text-align: right;

	> button {
		display: inline-block;
		padding: 8px 15px;
		font-size: 14px;
		border-radius: 4px;
		margin-left: 20px;
		border: none;
		outline: none;
		font-weight: 400px;

		&:hover {
			cursor: pointer;
		}
	}

	> button:nth-of-type(1) {
		color: #495060;
		background-color: transparent;
		transition: color @animationTime;

		&:hover{
			color: @dangerColor;
		}
	}

	> button:nth-of-type(2) {
		color: #fff;
		background-color: @successfulColor;
		transition: background-color @animationTime;

		&:hover {
			background-color: #7cc779;
		}
	}
}
